import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ShareHome from '@/pages/shareProject/shareHome'
import Share1 from '@/pages/shareProject/share1'
import Share2 from '@/pages/shareProject/share2'
import Share0 from '@/pages/shareProject/share0'
import indexedDB from '@/pages/shareProject/share3_db'

import WebsiteLook from '@/pages/webSiteLook/home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'share0',
      component: Share0
    },
    {
      path:'/sharehome',
      name:'sharehome',
      component:ShareHome,
      redirect: '/sharehome/share1',
      children:[
        { path: 'share0', component: Share0 },
        { path: 'share1', component: Share1 },
        { path: 'share2', component: Share2 },
        { path: 'indexedDB', component: indexedDB },
      ]
    },
    {
      path:'/websitelook',
      name: 'WebsiteLook',
      component: WebsiteLook,
    }
  ]
})
